package org.example.learn.javaagent.apply_demo.track;

import java.util.Date;

// 链路基础信息
public class Span {

    // 链路ID
    private String linkId;
    // 方法进入时间
    private Date enterTime;

    public Span() {
    }

    public Span(String linkId) {
        this.linkId = linkId;
        this.enterTime = new Date();
    }

    public String getLinkId() {
        return linkId;
    }

    public void setLinkId(String linkId) {
        this.linkId = linkId;
    }

    public Date getEnterTime() {
        return enterTime;
    }

    public void setEnterTime(Date enterTime) {
        this.enterTime = enterTime;
    }
}
